home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2001 November / macformat-109.iso / Shareware / Utilities / CreaText 1.3.2ƒ.sea / CreaText 1.3.2ƒ / CreaText Help / docs / extend < prev    next >
Encoding:
Text File  |  2001-08-27  |  3.0 KB  |  60 lines  |  [TEXT/JAZZ]

  1. <HTML>
  2.  
  3.     <HEAD><TITLE>The Color chooser</TITLE>
  4.     <META name="Description" content="This page shows how to extend CreaText">
  5.     <META name="Keywords" content="JavaScript, addons, plugin, plug-in, addon, add-on, add on">
  6.     </HEAD>
  7.     <BODY bgcolor="white">
  8.  
  9. <FONT face="Charcoal" size="6">
  10. Extending CreaText
  11. </FONT>
  12. <P></P>
  13.  
  14.  
  15. <BR> <BR>
  16. You can extend CreaText with JavaScript scripts and special characters.<BR> <BR>
  17. <FONT color="#330099" face="Chicago" size="3">
  18. Scripts
  19. </FONT><BR>
  20.  
  21. You can use JavaScript code and include it into the JavaScript menu for fast access to them. For that, you have to create a text file (e.g. with Simple Text or CreaText). The whole script must be surrounded by a <<FONT color="blue">JAVASCRIPT</FONT>><<FONT color="blue">/JAVASCRIPT></FONT> tag pair. What doesn't stand between these tags is ignored.<BR>
  22. Then you have to enter a name for the script. Do this by putting some text between the tag pair <<FONT color="blue">NAME</FONT>><<FONT color="blue">/NAME</FONT>>. If this tag is missing, the script won't be added to the menu.<BR>
  23. Finally, the source code itself. Put it between the <<FONT color="blue">CODE</FONT>><<FONT color="blue">/CODE</FONT>> tag pair.<BR>
  24. Then save the file and put it into the folder labeled "JavaScript" in the CreaText folder.<BR>
  25. Then launch CreaText and open the JavaScript menu in the Insert menu. After the last separator line, your script should be listed. If you now select your script, its code will be put to the end of the <<FONT color="blue">HEAD</FONT>> of your file.
  26.  
  27. <BR>
  28. There's also an example script included.
  29.  
  30. <P></P>
  31.  
  32. <FONT color="#330099" face="Chicago" size="3">
  33. Special characters
  34. </FONT><BR>
  35.  
  36. In the Web menu, you find a sub-menu called 'Special characters'. It lists some special characters which the real time mechanism cannot change, because you use them to write your HTML code. So if you need these as an entity, you can easily select them from this menu or from the contextual menu.<BR>
  37. If you want additional special characters to be listed, create a new text file. You define the special character using a  <<FONT color="blue">CHAR</FONT>><<FONT color="blue">/CHAR</FONT>> tag pair. To define the according entity, use the  <<FONT color="blue">ENTITY</FONT>><<FONT color="blue">/ENTITY </FONT>> tag pair. Then save this file into the folder "Special characters" in your CreaText folder and start CreaText.<BR>
  38. There are some example files included.
  39.  
  40.  
  41. <!-- Back-Link-->
  42. <P align="center">
  43. <A href="../index">[Table of Contents]</A>
  44. </P>
  45. <P align="center">
  46. <A href="intro">[Intro]</A> 
  47. <A href="new">[New document]</A> 
  48. <A href="menu">[Menus]</A> 
  49. <A href="prefs">[Preferences]</A> 
  50. <A href="work">[Working with CT]</A> 
  51. <A href="cc">[Color chooser]</A> 
  52. <A href="context">[Contextual menu]</A> 
  53. <A href="extend">[Extending CT]</A> 
  54. <A href="control">[Controlling CT]</A> 
  55. </P>
  56.  
  57. <!-- All to easy, son of Skywalker. It appears that you are not as strong as the Emporer thought you to be. -->
  58.  
  59.      </BODY>
  60. </HTML>